package com.chainyoung.component_tmtrade.di.module;

import com.chainyoung.common.di.scope.ActivityScope;

import com.chainyoung.component_tmtrade.ui.mvp.contract.AboutFiatCurrencyContact;
import com.chainyoung.component_tmtrade.ui.mvp.contract.TradeFiatCurrencyOrderDetailContract;
import com.chainyoung.component_tmtrade.ui.mvp.contract.TradeFiatCurrencySubmitOrderContract;
import com.chainyoung.component_tmtrade.ui.mvp.model.AboutFiatCurrencyModel;
import com.chainyoung.component_tmtrade.ui.mvp.model.TradeFiatCurrencyOrderDetailModel;
import com.chainyoung.component_tmtrade.ui.mvp.model.TradeFiatCurrencySubmitOrderModel;

import dagger.Module;
import dagger.Provides;

@Module
public class TradeFiatCurrencyActivityModule {

    private TradeFiatCurrencySubmitOrderContract.View submitOrderView;

    private TradeFiatCurrencyOrderDetailContract.View orderDetailView;

    private AboutFiatCurrencyContact.View  aboutView;



    public TradeFiatCurrencyActivityModule(TradeFiatCurrencySubmitOrderContract.View view) {
        this.submitOrderView = view;
    }

    public TradeFiatCurrencyActivityModule(TradeFiatCurrencyOrderDetailContract.View view) {
        this.orderDetailView = view;
    }

    public TradeFiatCurrencyActivityModule(AboutFiatCurrencyContact.View view) {
        this.aboutView = view;
    }





    @ActivityScope
    @Provides
    TradeFiatCurrencySubmitOrderContract.View providerTradeFiatOrderView() {
        return this.submitOrderView;
    }

    @ActivityScope
    @Provides
    TradeFiatCurrencySubmitOrderContract.Model providerTradeFiatOrderModel(TradeFiatCurrencySubmitOrderModel model){
        return model;
    }


    @ActivityScope
    @Provides
    TradeFiatCurrencyOrderDetailContract.View providerTradeFiatOrderDetailView() {
        return this.orderDetailView;
    }

    @ActivityScope
    @Provides
    TradeFiatCurrencyOrderDetailContract.Model providerTradeFiatOrderDetailModel(TradeFiatCurrencyOrderDetailModel model){
        return model;
    }

    @ActivityScope
    @Provides
    AboutFiatCurrencyContact.View providerFiatCurrencyView() {
        return this.aboutView;
    }

    @ActivityScope
    @Provides
    AboutFiatCurrencyContact.Model providerTradeFiatCurrencyModel(AboutFiatCurrencyModel model){
        return model;
    }



}
